<template>
  <div>
    用户名: <input v-model="username" type="text"> <br>
    姓名: <input v-model="fullname" type="text">

  </div>
</template>

<script>
export default {
data(){
  return{
    username: '金你太美'
  }
},
computed:{
  fullname:{
    get(){
      return this.username
    },
    set(val){
      this.username = val
    }
  }
}
}
</script>

<style>

</style>